// 定义info小仓库
import { defineStore } from "pinia";

//组合式API
let useStatusStore = defineStore("status", {
    state: () => ({
        activeUid: null as string | null,
    }),
    actions: {
        setActive(uid: string) {
            this.activeUid = uid;
        },
        clearActive() {
            this.activeUid = null;
        },
    },
});

export default useStatusStore;